'''
Created on 8 Sep 2009

@author: jack
'''
class ArrayParams:
    def __init__(self, densities, arraysize, arraygap,markersize,markermakeup,gaps):
        self.densities=densities
        self.arraysize=arraysize
        self.arraygap=arraygap
        self.markersize=markersize
        self.markermakeup=markermakeup
        self.gaps=gaps
        self.fieldspan=[[0,0],[0,0]]
        for i in range(0,len(gaps)):
            self.fieldspan[0][i]=(len(gaps[i])-1)*arraygap[0]+len(gaps[i])*arraysize[0]+markersize[0]+markersize[2]
            self.fieldspan[1][i]=(len(densities)-1)*arraygap[1]+len(densities)*arraysize[1]+markersize[0]+markersize[2]